from os import environ

from prometheus_api_client import PrometheusConnect

prometheus_connect = PrometheusConnect()


def init_prometheus_connect() -> None:
    prometheus_connect.url = environ.get('PROM_URL')
    prometheus_connect.headers = {
        "InstanceId": environ.get('PROM_INSTANCE_ID'),
        "Authorization": f"Bearer {environ.get('PROM_TOKEN')}",
    }
